﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SysUserView.aspx.cs" Inherits="Rison.Web.admin.SysUserView" %>
<%@ Register src="../ascx/WebHeader.ascx" tagname="WebHeader" tagprefix="uc1" %>
<%@ Register src="../ascx/WebFooter.ascx" tagname="WebFooter" tagprefix="uc2" %>
<%@ Register src="../ascx/Navigation.ascx" tagname="Navigation" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统用户</title>
    <link href="../style/css/style.css" rel="stylesheet" type="text/css" enableviewstate="false" />
</head>
<body>
    <form id="form1" runat="server">
        <uc1:WebHeader ID="WebHeader1" runat="server" />
        <table cellpadding="1" cellspacing="1" border="0">
            <tr>
                <td><asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" /></td>
                <td><asp:Button ID="btnAppend" runat="server" Text="添加" onclick="btnAppend_Click" /></td>
                <td><asp:Button ID="btnDelete" runat="server" Text="删除" onclick="btnDelete_Click"/></td>
                <td><asp:Button ID="btnInitPwd" runat="server" Text="初始化密码" onclick="btnInitPwd_Click"/></td>
                <td><asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
        <asp:Panel ID="plConditions" runat="server">
            <table >
                <tr>
                    <td>用户名：</td>
                    <td><asp:TextBox ID="txtUid" runat="server"></asp:TextBox></td>
                    <td>姓名：</td>
                    <td><asp:TextBox ID="txtUName" runat="server"></asp:TextBox></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:GridView ID="gvData" runat="server" AllowPaging="True"  OnPageIndexChanging ="gvData_PageIndexChanging"
            AutoGenerateColumns="False" DataKeyNames="UID" PageSize="50" CellPadding="4" PagerSettings-PageButtonCount="30"
            ForeColor="#333333" GridLines="Both" >
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" Height="28px" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox id="chkSelect" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="用户ID" HeaderStyle-Width="150px">
                    <ItemTemplate>
                        <a href="SysUserEdit.aspx?key=<%# DataBinder.Eval(Container.DataItem, "UID")%>"><%# DataBinder.Eval(Container.DataItem, "UserId")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Name" HeaderText="姓名" HeaderStyle-Width="120px" />
                <asp:BoundField DataField="Sex" HeaderText="性别" HeaderStyle-Width="60px" />
                <asp:BoundField DataField="Description" HeaderText="备注" HeaderStyle-Width="450px" />
            </Columns>
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"  Height="28px" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <div style="width:100%; height:100px;"></div>
        <uc2:WebFooter ID="WebFooter1" runat="server" />
    </form>
</body>
</html>
